import {
	createStore
} from 'vuex'
const store = createStore({
	state: { //存放状态
		userType: 1, //1个人   2 企业
		fileList: []
	},
	getters: {},
	mutations: {
		changeUserType(state, status) {
			console.log(status, 'status')
			state.userType = status; //status就是传入的值
		},
		saveFileList(state, status) {
			state.fileList = status; //status就是传入的值
		}
	},
	actions: {},
	modules: {}
})
export default store